package com.jyw.business.de.service.impl;

import java.util.List;
import com.jyw.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.jyw.business.de.mapper.DeDemandMakeMapper;
import com.jyw.business.de.domain.DeDemandMake;
import com.jyw.business.de.service.IDeDemandMakeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * 需求-处理需求Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-19
 */
@Service
public class DeDemandMakeServiceImpl extends ServiceImpl<DeDemandMakeMapper,DeDemandMake> implements IDeDemandMakeService
{
    @Resource
    private DeDemandMakeMapper deDemandMakeMapper;

    /**
     * 查询需求-处理需求
     * 
     * @param id 需求-处理需求主键
     * @return 需求-处理需求
     */
    @Override
    public DeDemandMake selectDeDemandMakeById(Long id)
    {
        return deDemandMakeMapper.selectDeDemandMakeById(id);
    }

    /**
     * 查询需求-处理需求列表
     * 
     * @param deDemandMake 需求-处理需求
     * @return 需求-处理需求
     */
    @Override
    public List<DeDemandMake> selectDeDemandMakeList(DeDemandMake deDemandMake)
    {
        return deDemandMakeMapper.selectDeDemandMakeList(deDemandMake);
    }

    /**
     * 新增需求-处理需求
     * 
     * @param deDemandMake 需求-处理需求
     * @return 结果
     */
    @Override
    public int insertDeDemandMake(DeDemandMake deDemandMake)
    {
        deDemandMake.setCreateTime(DateUtils.getNowDate());
        return deDemandMakeMapper.insertDeDemandMake(deDemandMake);
    }

    /**
     * 修改需求-处理需求
     * 
     * @param deDemandMake 需求-处理需求
     * @return 结果
     */
    @Override
    public int updateDeDemandMake(DeDemandMake deDemandMake)
    {
        return deDemandMakeMapper.updateDeDemandMake(deDemandMake);
    }

    /**
     * 批量删除需求-处理需求
     * 
     * @param ids 需要删除的需求-处理需求主键
     * @return 结果
     */
    @Override
    public int deleteDeDemandMakeByIds(Long[] ids)
    {
        return deDemandMakeMapper.deleteDeDemandMakeByIds(ids);
    }

    /**
     * 删除需求-处理需求信息
     * 
     * @param id 需求-处理需求主键
     * @return 结果
     */
    @Override
    public int deleteDeDemandMakeById(Long id)
    {
        return deDemandMakeMapper.deleteDeDemandMakeById(id);
    }
}
